import moment from "moment";
const timeDirective = (el, binding, vnode) => {
  if(!binding.value || binding.value=='0') return;
  const value = String(binding.value).substring(0, 10) * 1000;
  el.innerHTML = moment(value).format("YYYY-MM-DD HH:mm:ss");
};
export default timeDirective;
